var Resource = require('/utils/remotedata/Resource');
var RestClient = require('/utils/remotedata/RestClient');
var fb = Alloy.Globals.Facebook;

exports.createInvitation = function(dataToSend, callbackExito, callbackError) {
	RestClient.invocar(Resource.invitation.createInvitation, dataToSend, callbackExito, callbackError);
};

exports.updateInvitation = function(usieId, invitationId, invitationStatus, successCallback, errorCallback) {
	var dataToSend = { usieId: usieId, invitationId : invitationId, invitationStatus : invitationStatus, accessToken: fb.accessToken};
	RestClient.invocar(Resource.invitation.updateInvitation, dataToSend, successCallback, errorCallback);
};
